package com.wb.spring.boot.autoconfigure.exception;


/**
 * @author sw
 * @create 2023-03-03 11:56
 */
public class WbException extends RuntimeException {

    private static final String EXCEPTION_MESSAGE_TEMPLATE_NULL_REQUEST =
            "request should not be null";
    private static final long serialVersionUID = 0;
    private int status;
    private byte[] responseBody;

    protected WbException(int status, String message, Throwable cause) {
        super(message, cause);
        this.status = status;
    }

    protected WbException(int status, String message, Throwable cause, byte[] responseBody) {
        super(message, cause);
        this.status = status;
        this.responseBody = responseBody;
    }

    protected WbException(int status, String message) {
        super(message);
        this.status = status;
    }

    protected WbException(int status, String message, byte[] responseBody) {
        super(message);
        this.status = status;
        this.responseBody = responseBody;
    }

}

